<?php
class mysqli_class extends parent_class
{
	public $database=NULL;
	
	public $host="localhost";
	public $user="root";
	public $password="";
	public $db_name="";
	
	public function __construct()
	{
		if($connect)
		{
			$this->connect();
		}
	}
	
	public function connect()
	{
		@$this->database=new mysqli($this->host,$this->user,$this->password,$this->db_name);
		if (mysqli_connect_errno())
		{
			$this->error(3);
		}
	}
	
	public function query($query="")
	{
		if ($this->database)
		{
			return $this->database->query($query);
		}
		else
		{
			$this->error(2);
		}
	}
}
?>